﻿using AdapterPattern.Abstractions;
using System;
using System.Collections.Generic;
using System.Text;

namespace AdapterPattern.Adapters
{
    public class ToyChickenAdapter : IEraserDuck // 橡皮鸭适配器
    {
        private readonly IToyChicken toyChicken;
        public ToyChickenAdapter(IToyChicken toyChicken)
        {
            this.toyChicken = toyChicken;
        }
        public void Quack()
        {
            //throw new NotImplementedException();
            toyChicken.Quack();
        }
    }
}
